cmake_minimum_required(VERSION 3.5.0)

project(d3d11_imgui)

set(CMAKE_CXX_STANDARD 17)

add_compile_definitions(UNICODE _UNICODE)
if (WIN7_SYSTEM_SUPPORT MATCHES ON)
    add_compile_definitions(_WIN32_WINNT=0x601)
endif()

add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")

file(GLOB imgui_src *.cpp)


add_library(imgui ${imgui_src})

target_include_directories(imgui PUBLIC ../)
target_include_directories(imgui PUBLIC ../include)